package com.bwie.shop.remote;

import com.bwie.common.domain.Contract;
import com.bwie.common.result.Result;
import com.bwie.shop.remote.impl.Fusing;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "bwie-contract",fallbackFactory = Fusing.class)
public interface ShopRemote {
    /**
     * 查询合同数量
     * @return
     */
    @GetMapping("/selectContractQuantity")
    public Result<List<Contract>> selectContractQuantity();
}
